//
//  DataStore.h
//
//  Created by Jeremy Whitcher on 12/22/13.
//

#import <Foundation/Foundation.h>
#import "ItemRecords.h"

@interface DataStore : NSObject

@property NSString        *dataStoreVersion;
@property DefaultSettings *defaultSettings;
@property ItemRecords     *itemRecords;
@property ItemRecord      *exportRecord;
@property ItemRecord      *editRecord;
@property NSInteger       index;
@property NSInteger       action;
@property Reachability    *networkReachability;
@property Boolean         networkReachable;

+ (DataStore *)instance;
+ (BOOL)restore;
+ (void)store;
+ (void)storeRecord: (ItemRecord *)rec;
+ (NSString *)createUniqueFileName : (NSString*)prefixString : (NSString*) extension;
+ (void)deleteFile : (NSString *)fileName;
+ (void)deleteAllFiles : (NSString *)extension;
+ (void)setDefaultData;

@end
